//package com.ycy.plugin;
//
//import org.mybatis.generator.api.IntrospectedColumn;
//import org.mybatis.generator.api.PluginAdapter;
//import org.mybatis.generator.api.dom.java.Field;
//import org.mybatis.generator.api.dom.java.TopLevelClass;
//import org.mybatis.generator.api.IntrospectedTable;
//import java.util.List;
//
//public class CommentPlugin  extends PluginAdapter {
//
//    @Override
//    public boolean validate(List<String> warnings) {
//        return true;
//    }
//
//    @Override
//    public boolean modelFieldGenerated(Field field, TopLevelClass topLevelClass,
//                                       IntrospectedColumn introspectedColumn,
//                                       IntrospectedTable introspectedTable,
//                                       ModelClassType modelClassType) {
//        // Get the comment from the introspected column
//        String comment = introspectedColumn.getRemarks();
//        if (comment != null && !comment.isEmpty()) {
//            // Add the comment as a JavaDoc comment to the field
//            field.addJavaDocLine("/**");
//            field.addJavaDocLine(" * " + comment);
//            field.addJavaDocLine(" */");
//        }
//        return true;
//    }
//}